package com.ustc.hewei.rpc.common.protocol;

import java.io.Serializable;

/**
 * @author hewei
 * @version 1.0
 * @description: 请求的类型枚举类
 * @date 2022/8/11 10:19
 */

public enum RequestType implements Serializable {
    MESSAGE(0, "message"),
    KEEP_ALIVE(1, "keep alive");

    private int code;
    private String msg;

    RequestType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
